package com.base.thread.demo_32;

/**
 * 使用Condition 代替 demo_30里面用的wait和notfiy
 * @ClassName: Main
 * @Description: 
 * @Author xuyou
 * @DateTime 2020年12月17日 下午6:11:41
 */
public class Main {

	public static void main(String[] args) {
		
		Tmall tmall = new Tmall();
		
		PushTarget p = new PushTarget(tmall);
		TakeTarget t = new TakeTarget(tmall);
		
		new Thread(p).start();
		new Thread(p).start();
		new Thread(p).start();
		new Thread(p).start();
		new Thread(p).start();
		
		new Thread(t).start();
		new Thread(t).start();
		new Thread(t).start();
		new Thread(t).start();
		new Thread(t).start();
		
	}
	
	
}
